//
// Created by Semir on 2020/5/12.
//

#include <iostream>
#include <regex>
#include <string>

using namespace std;

string str;

bool isNumeric(char* string) {
    str = string;
    regex pattern("[+-]?\\d*(\\.(\\d+)?)?([eE][+-]?\\d+)?");
    return regex_match(str, pattern);
}

int main() {
    bool res = isNumeric((char*) "-1E-16");
    cout << res << endl;
    return 0;
}
